<template>
    <div class="rig">
        <h1>全部通知</h1>
        <div class="list">
            <router-link to v-for="(item,index) in 8" :key="index">
                <p>减肥的感觉发动机kg那几款的法国进口科技减肥的感觉发动机kg那几款的法国进口科技股份的给付对价功能空间股份的给付对价功能空间 方面的那个 放到个梵蒂冈</p>
                <p>2020-03-21</p>
            </router-link>
        </div>
        <div class="news-page">
            <el-pagination
                background
                layout="prev, pager, next"
                :total="totalSum"
                :page-size="sizeSum"
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
            ></el-pagination>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            totalSum: 0,
            sizeSum: 30,
        }
    },
    methods: {
        handleSizeChange(val) {
            console.log(`每页 ${val} 条`);
        },
        handleCurrentChange(val) {
            console.log(val);
        },
    }
}
</script>

<style scoped>
.news-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
    background: #c02636;
}

.rig >h1{
	height: 50px;
	line-height: 50px;
	font-size: 18px;
	color: #c02636;
	font-weight: 500;
	border-bottom: 1px solid #ddd;
}
.list{
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
	height: 310px;
}
.list a{
	display: flex;
	padding: 8px 0;
}
.list a p{
	font-size: 15px;
}
.list a p:nth-child(2){
	color: #999;
}
.list a p:nth-child(1){
	display: block;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	flex: 1;
	padding-left: 15px;
	position: relative;
	padding-right: 80px;
}
.list a p:nth-child(1)::before{
	content: '';
	position: absolute;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	left: 0;
	top: 7px;
	background-color: #999;
}
</style>